package org.jprogger.myworld.api.response;

/**
 * 
 * @author jprogger
 *
 * Common response interface
 */
public interface ApiResponse<T> {

	/**
	 * 
	 * @return
	 */
	public boolean hasError();
	
	/**
	 * 
	 * @return
	 */
	public ApiResponseError getError();
	
	/**
	 * 
	 * @param error
	 */
	public void setError(ApiResponseError error);
	
	/**
	 * 
	 * @return
	 */
	public ApiResponseData<T> getResponseData();
	
	/**
	 * 
	 * @param data
	 */
	public void setResponseData(ApiResponseData<T> data);
}
